(function(window){
	var freshRem=function(){
         var dwidth=window.document.documentElement.clientWidth;
	   var font=dwidth/10>54?54:dwidth/10;
	   font+='px';
	   window.document.documentElement.style.fontSize=font;  
	}

	window.addEventListener('resize',function(){
		location.href=location.href;
		freshRem();
	},false);
	if(window.document.readyState=='complete'){
		freshRem();
	}else{
		window.document.addEventListener('DOMContentLoaded',function(){
			freshRem();
		},false);
	}
})(window)
